Optimal. Leaf size=183 \[ \frac{b e^{a+b x} \sin (c+d x)}{8 \left (b^2+d^2\right )}+\frac{b e^{a+b x} \sin (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac{b e^{a+b x} \sin (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}-\frac{d e^{a+b x} \cos (c+d x)}{8 \left (b^2+d^2\right )}-\frac{3 d e^{a+b x} \cos (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}+\frac{5 d e^{a+b x} \cos (5 c+5 d x)}{16 \left (b^2+25 d^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.125889, antiderivative size = 183, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {4469, 4432} \[ \frac{b e^{a+b x} \sin (c+d x)}{8 \left (b^2+d^2\right )}+\frac{b e^{a+b x} \sin (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac{b e^{a+b x} \sin (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}-\frac{d e^{a+b x} \cos (c+d x)}{8 \left (b^2+d^2\right )}-\frac{3 d e^{a+b x} \cos (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}+\frac{5 d e^{a+b x} \cos (5 c+5 d x)}{16 \left (b^2+25 d^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4469
Rule 4432
Rubi steps
\begin{align*} \int e^{a+b x} \cos ^2(c+d x) \sin ^3(c+d x) \, dx &=\int \left (\frac{1}{8} e^{a+b x} \sin (c+d x)+\frac{1}{16} e^{a+b x} \sin (3 c+3 d x)-\frac{1}{16} e^{a+b x} \sin (5 c+5 d x)\right ) \, dx\\ &=\frac{1}{16} \int e^{a+b x} \sin (3 c+3 d x) \, dx-\frac{1}{16} \int e^{a+b x} \sin (5 c+5 d x) \, dx+\frac{1}{8} \int e^{a+b x} \sin (c+d x) \, dx\\ &=-\frac{d e^{a+b x} \cos (c+d x)}{8 \left (b^2+d^2\right )}-\frac{3 d e^{a+b x} \cos (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}+\frac{5 d e^{a+b x} \cos (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}+\frac{b e^{a+b x} \sin (c+d x)}{8 \left (b^2+d^2\right )}+\frac{b e^{a+b x} \sin (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac{b e^{a+b x} \sin (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}\\ \end{align*}
Mathematica [A] time = 0.913075, size = 110, normalized size = 0.6 \[ \frac{1}{16} e^{a+b x} \left (\frac{2 (b \sin (c+d x)-d \cos (c+d x))}{b^2+d^2}+\frac{b \sin (3 (c+d x))-3 d \cos (3 (c+d x))}{b^2+9 d^2}+\frac{5 d \cos (5 (c+d x))-b \sin (5 (c+d x))}{b^2+25 d^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.021, size = 166, normalized size = 0.9 \begin{align*} -{\frac{d{{\rm e}^{bx+a}}\cos \left ( dx+c \right ) }{8\,{b}^{2}+8\,{d}^{2}}}-{\frac{3\,d{{\rm e}^{bx+a}}\cos \left ( 3\,dx+3\,c \right ) }{16\,{b}^{2}+144\,{d}^{2}}}+{\frac{5\,d{{\rm e}^{bx+a}}\cos \left ( 5\,dx+5\,c \right ) }{16\,{b}^{2}+400\,{d}^{2}}}+{\frac{b{{\rm e}^{bx+a}}\sin \left ( dx+c \right ) }{8\,{b}^{2}+8\,{d}^{2}}}+{\frac{b{{\rm e}^{bx+a}}\sin \left ( 3\,dx+3\,c \right ) }{16\,{b}^{2}+144\,{d}^{2}}}-{\frac{b{{\rm e}^{bx+a}}\sin \left ( 5\,dx+5\,c \right ) }{16\,{b}^{2}+400\,{d}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.29158, size = 1550, normalized size = 8.47 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.511893, size = 454, normalized size = 2.48 \begin{align*} \frac{{\left (2 \, b^{3} d^{2} + 26 \, b d^{4} -{\left (b^{5} + 10 \, b^{3} d^{2} + 9 \, b d^{4}\right )} \cos \left (d x + c\right )^{4} +{\left (b^{5} + 14 \, b^{3} d^{2} + 13 \, b d^{4}\right )} \cos \left (d x + c\right )^{2}\right )} e^{\left (b x + a\right )} \sin \left (d x + c\right ) +{\left (5 \,{\left (b^{4} d + 10 \, b^{2} d^{3} + 9 \, d^{5}\right )} \cos \left (d x + c\right )^{5} -{\left (7 \, b^{4} d + 82 \, b^{2} d^{3} + 75 \, d^{5}\right )} \cos \left (d x + c\right )^{3} + 2 \,{\left (b^{4} d + 13 \, b^{2} d^{3}\right )} \cos \left (d x + c\right )\right )} e^{\left (b x + a\right )}}{b^{6} + 35 \, b^{4} d^{2} + 259 \, b^{2} d^{4} + 225 \, d^{6}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15763, size = 209, normalized size = 1.14 \begin{align*} \frac{1}{16} \,{\left (\frac{5 \, d \cos \left (5 \, d x + 5 \, c\right )}{b^{2} + 25 \, d^{2}} - \frac{b \sin \left (5 \, d x + 5 \, c\right )}{b^{2} + 25 \, d^{2}}\right )} e^{\left (b x + a\right )} - \frac{1}{16} \,{\left (\frac{3 \, d \cos \left (3 \, d x + 3 \, c\right )}{b^{2} + 9 \, d^{2}} - \frac{b \sin \left (3 \, d x + 3 \, c\right )}{b^{2} + 9 \, d^{2}}\right )} e^{\left (b x + a\right )} - \frac{1}{8} \,{\left (\frac{d \cos \left (d x + c\right )}{b^{2} + d^{2}} - \frac{b \sin \left (d x + c\right )}{b^{2} + d^{2}}\right )} e^{\left (b x + a\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]